package demo

import (
	"github.com/gofiber/fiber/v2"
)

const bastApi = "/demo"

func InitdemoRoutes(r fiber.Router) {
	roomServer := NewSenRoomController()
	r.Get(bastApi+"/room/list", roomServer.List)
	r.Get(bastApi+"/room/get/:id", roomServer.Get)
	r.Post(bastApi+"/room/del/:ids", roomServer.Del)
	r.Post(bastApi+"/room/add", roomServer.Add)
	r.Post(bastApi+"/room/edit", roomServer.Edit)
	r.Post(bastApi+"/room/export", roomServer.Export)

	babyServer := NewSenBabyController()
	r.Get(bastApi+"/baby/list", babyServer.List)
	r.Get(bastApi+"/baby/get/:id", babyServer.Get)
	r.Post(bastApi+"/baby/del/:ids", babyServer.Del)
	r.Post(bastApi+"/baby/add", babyServer.Add)
	r.Post(bastApi+"/baby/edit", babyServer.Edit)
	r.Post(bastApi+"/baby/export", babyServer.Export)

	momServer := NewSenMomController()
	r.Get(bastApi+"/mom/list", momServer.List)
	r.Get(bastApi+"/mom/get/:id", momServer.Get)
	r.Post(bastApi+"/mom/del/:ids", momServer.Del)
	r.Post(bastApi+"/mom/add", momServer.Add)
	r.Post(bastApi+"/mom/edit", momServer.Edit)
	r.Post(bastApi+"/mom/export", momServer.Export)
}
